#ifndef IMAGEWINDOW_H_
#define IMAGEWINDOW_H_

#include "OpenGLImage.h"
#include "TextureQuad.h"

class ImageWindow {
public:
	ImageWindow(OpenGLImage* start, OpenGLImage* end, int dynamicFrames,
			int staticFrames);
	void init();
	void draw();
	void mouseFunc(int button, int state, int x, int y);
	void motionFunc(int x, int y);
	void incrFrame();
private:
	void getFadeTexIDs(GLuint* fadeTexIDs, float staticFrames);
	OpenGLImage* getImage(int x, int y);
	OpenGLImage* start, *end;
	TextureQuad* texQuad;
	int width, height;
};

#endif /* IMAGEWINDOW_H_ */
